/*
 * 创建人： Created by  on 2020/12/3.
 * 创建时间：Created by  on 2020/12/3.
 * 页面说明：
 * 可关注公众号：我的大前端生涯   获取最新技术分享
 * 可关注网易云课堂：https://study.163.com/instructor/1021406098.htm
 * 可关注博客：https://blog.csdn.net/zl18603543572
 */
import 'package:flutter_learn_vi/src/bean/bean_user.dart';

class ReviewBean {
  int id;
  String title;
  String comment;

  int shareCount;
  int pariseCount;
  int reviewCount;

  int userId;

  String createTime;

  UserBean userBean;

  ReviewBean(
      {this.id,
      this.title,
      this.shareCount,
      this.pariseCount,
      this.reviewCount});

  ///常用用于解析JSON数据
  ReviewBean.fromMap(Map<String, dynamic> map) {
    this.id = map["id"];
    this.title = map["title"];
    this.comment = map["comment"];
    this.createTime = map["createTime"];

    this.userId = map['userId'];

    this.shareCount = map["shareCount"];
    this.pariseCount = map["pariseCount"];
    this.reviewCount = map["reviewCount"];
    var bean = map["userBean"];
    if (bean != null) {
      userBean = UserBean.fromJson(bean);
    }
  }
}
